package com.hu.zhcc.shiro.entity.lww.member;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author luowuwen
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TMember extends Model<TMember> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 档案号
     */
    @TableField("fileNumber")
    private String fileNumber;
    /**
     * 会员名
     */
    private String name;
    /**
     * 性别
     */
    private String sex;
    /**
     * 身份证号码
     */
    @TableField("idCard")
    private String idCard;
    /**
     * 手机号码
     */
    @TableField("phoneNumber")
    private String phoneNumber;
    /**
     * 注册时间
     */
    @TableField("regTime" )
    private String regTime;
    /**
     * 密码
     */
    private Integer password;
    /**
     * 邮箱
     */
    private String email;
     /**
     * 出生日期
     */
    private String birthday;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    private String createtime;
    /**
     * 修改时间
     */
    private String updatetime;
    /**
     * 健康管理师编号
     */
    private Integer healthMgrId;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 状态
     */
    private Integer status;

    private String image;

    private String healthMgrName;

//
    @TableField(exist = false)
    private TMemberDynamicinfo tMemberDynamicinfo;

    @TableField(exist = false)
    private TMemberInfo tMemberInfo;
    @TableField(exist = false)
    private TMemberMedicalhistory tMemberMedicalhistory;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
